<template>
    <button @click="handleClick">测试内部点击能否触发外组件 click 组件</button>
</template>
<script>
export default {
    methods: {
        handleClick(e) {
            console.log("我触发了");
            console.log(e);
            window.setTimeout(() => {
                console.log("我从button 内部触发");
                this.$emit("click");
            }, 2000);
        },
    },
};
</script>